package com.huyanqi.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

import com.huyanqi.core.BaseDomainObject;

@Entity
@Table(name = "t_user")
@XmlAccessorType(XmlAccessType.FIELD)
public class User extends BaseDomainObject {
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Id
	@Column(name="u_id",nullable=false)
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long uId;

	public void setUId(Long uId) {
		this.uId = uId;
	}
	public Long getUId() {
		return uId;
	}

	@Column(name="u_email")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private String uEmail;

	public void setUEmail(String uEmail) {
		this.uEmail = uEmail;
	}
	public String getUEmail() {
		return uEmail;
	}

	@Column(name="u_password")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private String uPassword;

	public void setUPassword(String uPassword) {
		this.uPassword = uPassword;
	}
	public String getUPassword() {
		return uPassword;
	}

	@Column(name="u_nickname")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private String uNickname;

	public void setUNickname(String uNickname) {
		this.uNickname = uNickname;
	}
	public String getUNickname() {
		return uNickname;
	}

	@Column(name="u_sex")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private String uSex;

	public void setUSex(String uSex) {
		this.uSex = uSex;
	}
	public String getUSex() {
		return uSex;
	}

	@Column(name="u_level")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private String uLevel;

	public void setULevel(String uLevel) {
		this.uLevel = uLevel;
	}
	public String getULevel() {
		return uLevel;
	}

	@Column(name="u_rank")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long uRank;

	public void setURank(Long uRank) {
		this.uRank = uRank;
	}
	public Long getURank() {
		return uRank;
	}

	@Column(name="u_head")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private String uHead;

	public void setUHead(String uHead) {
		this.uHead = uHead;
	}
	public String getUHead() {
		return uHead;
	}

	@Column(name="u_sign_num")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long uSignNum;

	public void setUSignNum(Long uSignNum) {
		this.uSignNum = uSignNum;
	}
	public Long getUSignNum() {
		return uSignNum;
	}

	@Column(name="u_share_num")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long uShareNum;

	public void setUShareNum(Long uShareNum) {
		this.uShareNum = uShareNum;
	}
	public Long getUShareNum() {
		return uShareNum;
	}

	@Column(name="u_friends_num")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long uFriendsNum;

	public void setUFriendsNum(Long uFriendsNum) {
		this.uFriendsNum = uFriendsNum;
	}
	public Long getUFriendsNum() {
		return uFriendsNum;
	}

	@Column(name="u_praise_num")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long uPraiseNum;

	public void setUPraiseNum(Long uPraiseNum) {
		this.uPraiseNum = uPraiseNum;
	}
	public Long getUPraiseNum() {
		return uPraiseNum;
	}

}